<layout name="layout" />
<?php
if (ACTION_NAME == 'edit') {
    $action_url = U(MODULE_NAME . "/update");
} else {
    $action_url = U(MODULE_NAME . "/insert");
}
?>
<form action="{$action_url}" name="art_add" method="post" enctype="multipart/form-data">
    <div class="table_list">
        <table width="100%" cellspacing="0" cellpadding="0" class="table_form">
            <input type="hidden" value="{$vo['type_id']}" name="id">
            <tbody>
                <tr>
                    <td>分类名称:</td>
                    <td><input type="text" name="type_name" maxlength="30" value="{$vo.type_name}" class="input" /></td>
                </tr>
                <tr>
                    <td>排序:</td>
                    <td><input type="text" name="sort_order" maxlength="30" value="{$vo.sort_order}" class="input" /><label class="lab"></label></td>
                </tr>
                <tr>
                    <td>是否显示:</td>
                    <td>
                        <select name="status">
                             <option <if condition="$vo['status'] == 1">selected="selected"</if> value="1">显示</option>
                             <option <if condition="$vo['status'] === 0">selected="selected"</if> value="0">不显示</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td valign="middle"><input type="submit" name="edit_btn" class="btn" value="提 交" /></td>
                </tr>
            </tbody>
        </table>
    </div>
</form>
